package com.njlime.cms.entities;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.njlime.core.base.entities.BaseEntity;
import com.njlime.core.web.validation.RegexType;
import com.njlime.core.web.validation.annotation.Validate;

/**
 * 微信菜单实体类
 *
 * @since 
 */
@Entity
@Table(name = "t_wx_menu")
public class WxMenu extends BaseEntity {
    private Integer pid; // 父级菜单
    private Integer unit_id; // 单位ID
    private String name; // 菜单名称
    private String type; // 菜单类型
    private String ekey; // 用来匹配菜单的key
    private String url; // 点击后跳转的地址
    private String pagepath;
    private Date create_time; // 添加时间
    private Date update_time; // 更新时间
    private Integer sort; // 排序
    private Integer is_del; // 是否删除

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getEkey() {
        return ekey;
    }

    public void setEkey(String ekey) {
        this.ekey = ekey;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public Integer getUnit_id() {
        return unit_id;
    }

    public void setUnit_id(Integer unit_id) {
        this.unit_id = unit_id;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getIs_del() {
        return is_del;
    }

    public void setIs_del(Integer is_del) {
        this.is_del = is_del;
    }

    public String getPagepath() {
        return pagepath;
    }

    public void setPagepath(String pagepath) {
        this.pagepath = pagepath;
    }
}